package com.car.controller;

import com.car.entity.Xiaohao;
import com.car.service.IXiaohaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Description:
 * @author: hsy
 * @version: v1.0
 * @Date
 */
@Controller
public class XiaohaoController {
    @Autowired
    @Qualifier("xiaohaoService")
    private IXiaohaoService iXiaohaoService;

    @RequestMapping(value = "/findXiaohaoAll")
    public String findAll(Model model){
        List<Xiaohao> all = iXiaohaoService.findAll();
        model.addAttribute("all",all);
        return "/expenses_Record.jsp";
    }
}
